<#import "base.ftl" as base/>
<#import "spring.ftl" as spring/>

<@base.baseTemplate title="login">
	<div class="loginForm">
		<span class="introduction"><b><@spring.message "message.pleaseLogin"/></b></span>
		<#if Session.SPRING_SECURITY_LAST_EXCEPTION?? && Session.SPRING_SECURITY_LAST_EXCEPTION.message?has_content>
			<div class="line error">${Session.SPRING_SECURITY_LAST_EXCEPTION.message! ""}</div>
		</#if>
		<form name="f" action="j_spring_security_check" method="POST">
			<div class="line">
				<label for="j_username"><@spring.message "username"/></label><input type='text' name='j_username'/>
			</div>
			<div class="line">
				<label for="j_password"><@spring.message "password"/></label><input type='password' name='j_password'/>
			</div>
			<div class="line">
				<label for"_spring_security_remember_me"><@spring.message "rememberLogin"/></label><input type="checkbox" name="_spring_security_remember_me"/>
			</div>
			<div class="line">				
				<label>&nbsp;</label><input class="button" type="submit" value="<@spring.message "login"/>"/>			
			</div>
		</form>
	</div>
</@base.baseTemplate>